package com.vilynn.learning.lottery.draw;

/**
 * @author weilin.wang
 * @version v1.0
 * @date 2018/8/24
 * @see
 * @since 1.0
 */
public class ChongqingHour implements DrawWinNumber {

    private static final String url = "https://chart.cp.360.cn/zst/qkj/?lotId=%s&issue=%s";
    private static final int lotId = 255401;
    private static int issue = 180823056;


    @Override
    public String winNumber() {
        return null;
//        RestTemplate restTemplate = new RestTemplate();
//        Map<String, Object> json = new HashMap<>();
//        json.put("lotId", lotId);
//        json.put("issue", issue);
//        ResponseEntity<JSONObject> res = restTemplate.getForEntity(String.format(url, lotId, issue), JSONObject.class);
//        return res.getBody().getObject("0", LinkedHashMap.class).get("WinNumber").toString();
    }
}
